#include<iostream>
using namespace std;



class Test
{
    public:

    int a;
    int b;

    Test()
    {
        cout<<"Test 无参构造"<<endl;
    }

    Test(int a,int b):a(a),b(b),c(0)
    {cout<<"Test 有参构造"<<endl;}

    Test(const Test & other)
    {
        this->a = other.a;
        this->b = other.b;
        this->c = other.c;
        cout<<"Test 拷贝构造"<<endl;
    }


    private:

    int c;
};


class TestA :public Test
{
    public:

    TestA():Test()
    {

    }

    TestA(int a, int b , int d):Test()
    {
        this->a = a;
        this->b = b;
        this->d = d;
    }

    private:
    int d;

};



int main()
{

    TestA testa(1,2,3);
    
    cout<<testa.a<<endl;


    return 0;
}





